#include<pthread.h>
#include<iostream>
#include<string>
#include<unistd.h>
using namespace std;
 int count=1;
 void * routine1(void* args)
 {
    (void)args;
    while(true)
    {
        cout<<"thread-1,count= "<<count<<endl;
        count++;
        sleep(1);
    }
}
int main()
{
    pthread_t tid1,tid2;
    pthread_create(&tid1,nullptr,routine1,nullptr);
    pthread_join(tid1, nullptr);
    return 0;
}